package com.delu.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Document(collation = "user_message")
public class UserMessage {

    @Id
    private String mid;

    private String user;

    private String toUser;

    private String message;

    private Integer type;
}
